package com.zb.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;

public class Houseinfo implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer houseId;
	private String houseDesc;
	private Integer typeId;
	private Housetype housetype;
	private Integer monthlyRent;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JSONField(format = "yyyy-MM-dd")
	private Date publishDate;

	public Houseinfo() {
	}

	public Integer getHouseId() {
		return houseId;
	}

	public void setHouseId(Integer houseId) {
		this.houseId = houseId;
	}

	public String getHouseDesc() {
		return houseDesc;
	}

	public void setHouseDesc(String houseDesc) {
		this.houseDesc = houseDesc;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public Housetype getHousetype() {
		return housetype;
	}

	public void setHousetype(Housetype housetype) {
		this.housetype = housetype;
	}

	public Integer getMonthlyRent() {
		return monthlyRent;
	}

	public void setMonthlyRent(Integer monthlyRent) {
		this.monthlyRent = monthlyRent;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	@Override
	public String toString() {
		return "Houseinfo [houseDesc=" + houseDesc + ", houseId=" + houseId
				+ ", housetype=" + housetype + ", monthlyRent=" + monthlyRent
				+ ", publishDate=" + publishDate + ", typeId=" + typeId + "]";
	}
}
